import request from '@/utils/request'

export default {
  //条件查询课程
  getCourseList(page, limit,searchObj) {
    return request({
      url: `eduService/courseFront/getFrontCourseList/${page}/${limit}`,
      method: 'post',
      data: searchObj
    })
  },

  //查询所有分类
  getAllSubject() {
    return request({
      url: '/eduService/subject/getAllSubject',
      method: 'get'
    })
  },

  //课程详情
  getCourseInfo(id) {
    return request({
      url: '/eduservice/courseFront/getFrontCourseInfo/'+id,
      method: 'get'
    })
  }
}
